package com.goldfish666.remote_control.entity.common;


import com.goldfish666.remote_control.entity.base.BaseKeyWithDistributedId;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Inheritance(strategy = InheritanceType.JOINED)
//@BeanCopySource(source = InputDto.class, features = {CopyFeature.IGNORE_ALL_NULL_SOURCE_VALUE})
public class OriginRecord extends BaseKeyWithDistributedId {

    // modelId
    private String modelId;

    // 序号
    @Column(name = "button_index", columnDefinition = "INT NOT NULL COMMENT '按钮号'")
    private int buttonIndex;

    // 序号
    @Column(name = "ordinal", columnDefinition = "INT NOT NULL COMMENT '序号'")
    private int ordinal;

    // 全状态
    @Column(name = "full_value", columnDefinition = "varchar(255) DEFAULT NULL COMMENT '全状态'")
    private String fullValue;
}
